﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> 
<meta http-equiv="refresh" content="300">  <!--五分钟自动刷新300s-->
<link rel="stylesheet" type="text/css" href="/static/style.css">
<script src="/static/js/tongda/js/ccorrect_btn.js"></script>
<link rel="stylesheet" type="text/css" href="/static/status_bar.css">
<title>状态栏</title>
<script src="/static/js/tongda/mytable.js"></script>
<script src="/static/js/tongda/marquee.js"></script>
<script type="text/javascript" src="/static/js/front/jQuery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/static/js/glxt/plat_api/common_glxt.js" charset="gb2312"></script>
<SCRIPT LANGUAGE="JavaScript">
function killErrors()
{
    return true;
}
window.onerror = killErrors;

var ctroltime;

function MyLoad()
{
    try {
        sms_mon();
        ctroltime = setInterval( "sms_mon()", 20000 ); // 五分钟钟一次 300000  一分钟 60000  10秒钟一次， 更新状态 、状态更新时间
    } catch( e ) {
        parent.location.href = '/?ver=999';
    }
}
function sms_mon()
{
    var rr = sync_post( "/statusbar/sms_remind_check/", { "nocache": Math.random() } );
    if (rr.ret) {
        json = rr.val;
        document.getElementById("user_count1").value = json['zxrs'];
    } else {
        parent.location.href = '/?ver=999';
    }
    
    // mod by xujf @14:12 2014/4/14
    //var d = loadJSONDoc( '/statusbar/sms_remind_check/', { 'nocache': Math.random() } );
    //d.addCallback( function( json ){
    //    document.getElementById("user_count1").value = json['zxrs'];
    //} ).addErrback( function( e ) {
    //    parent.location.href = '/?ver=999';
    //} )
}
// 弹出未提醒短信窗口
function show_sms()
{
    mytop=screen.availHeight-200;
    myleft=0;
    url = "/statusbar/sms_show/";
    window.open( url,"","height=160,width=370,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes" );
}
function MyUnload()
{
    clearInterval( ctroltime );
}
</script>
</head>
<body class="statusbar" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" >

<table border="0" width="100%" cellspacing="1" cellpadding="0" class="small">
    <tr>
        <td align="center" width="90" style="color:white;"><a href="#"> <span style="color:white;">共</span>
            <input id="user_count1" readonly>
            <span style="color:white;">人在线</span> </a> </td>
        <td align="center" width="80">&nbsp; <span id="new_sms"></span> </td>
        <td align="center" style="FONT-WEIGHT: bold;color:white;">
            <script language="JavaScript">
                new marquee('status_text');
                status_text.setDelay( 10*1000 );
                status_text.init( new Array("同业外联", "简单源于我们", "体验科技关怀   共创美好未来" ) );
            </script>
        </td>
        <td align="center" width="80">&nbsp; <span id="new_letter"></span> </td>
        <td align="center" width="75" style="color:white;">&nbsp; 上海平欣 </td>
    </tr>
</table>

</body>
</html>
